package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.ShopLogTemEntity;
import yf.mall.vo.ShopLogTemVo;

                import yf.mall.enums.ShopLogTemStatusEnum;

/**
 * 店铺物流模版实体
 * 表名 shop_log_tem
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 10:19:54 CST 2020
 */
@Data
public class ShopLogTemDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //店铺ID
            @ExcelProperty("店铺ID")
            private Long shopId;
        
                        //模版名字
            @ExcelProperty("模版名字")
            private String name;
        
                        //ENUM-运费设置:"LOWEST-最低计算","HIGHEST-最高计算","TOTAL-累计计算"
            @ExcelIgnore
            private Integer status;
                        @ExcelProperty("运费设置")
            private String statusStr;
        
    
    public ShopLogTemDown() {

    }

    public ShopLogTemDown(ShopLogTemVo vo) {
        ShopLogTemEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setShopId(entity.getShopId());
            
                                    this.setName(entity.getName());
            
                                    this.setStatus(entity.getStatus());
                if(entity.getStatus()!=null){
                    this.setStatusStr( ShopLogTemStatusEnum.indexOf(entity.getStatus()));
                }
            
            }


}
